package com.carpark.ejb.DAO;

import com.carpark.ejb.Model.ClientsModel;
import java.util.List;
import javax.ejb.Local;
import javax.ejb.Remote;
import javax.persistence.EntityManager;

/**
 *
 * @author Krzysztof
 */
@Local
public interface ClientDAO {

    public ClientsModel getClientById(Integer id);

    public EntityManager getEntityManager();

    public void addClient(ClientsModel client);
    
    public void updateClient(ClientsModel client);

    public void removeClientById(Integer id);

    public int getClientsModelSize();

    public ClientsModel findLogin(String login, String password);
    public List<ClientsModel> getAllClients();

    public ClientsModel getClientByEmail(String email);
    
}
